package cn.mafangui.hotel.entity;

import java.util.Date;

/**
 * @author ：Angular
 * @ProjectName: hotel
 * @Package: cn.mafangui.hotel.entity
 * @ClassName: Notice
 * @date ：Created in 2021/4/24 11:13
 * @description：公告实体类
 * @modified By：
 * @version: v1.0.0$
 */
public class Notice {
    private int id;
    private String title;
    private String content;
    private Date time;
    private int userId;
    private String userName;
    private String userTel;
    private String role;

    public Notice(int id, String title, String content, Date time, int userId, String userName, String userTel, String role) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.time = time;
        this.userId = userId;
        this.userName = userName;
        this.userTel = userTel;
        this.role = role;
    }

    public Notice(int id, String title, String content) {
        this.id = id;
        this.title = title;
        this.content = content;
    }

    public Notice() {
        super();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", time=" + time +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userTel='" + userTel + '\'' +
                ", role='" + role + '\'' +
                '}';
    }
}
